-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add: standalone plugin for evaluating dependencies with a graph #774
Conversation
Conventional Commits Report
🚀 Conventional commits found. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #774 +/- ##
==========================================
+ Coverage 79.84% 80.91% +1.06%
==========================================
Files 87 91 +4
Lines 3027 3212 +185
Branches 591 608 +17
==========================================
+ Hits 2417 2599 +182
- Misses 462 463 +1
- Partials 148 150 +2 ☔ View full report in Codecov by Sentry. |
Dependency ReviewThe following issues were found:
Snapshot WarningsEnsure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice. License Issuespoetry.lock
pyproject.toml
Allowed Licenses: 0BSD, AGPL-3.0-or-later, Apache-2.0, BlueOak-1.0.0, BSD-2-Clause, BSD-3-Clause-Clear, BSD-3-Clause, BSL-1.0, CAL-1.0, CC-BY-3.0, CC-BY-4.0, CC-BY-SA-4.0, CC0-1.0, EPL-2.0, GPL-2.0-only, GPL-2.0-or-later, GPL-2.0, GPL-3.0-or-later, ISC, LGPL-2.0-only, LGPL-2.0-or-later, LGPL-2.1-only, LGPL-2.1-or-later, LGPL-2.1, LGPL-3.0-only, LGPL-3.0, LGPL-3.0-or-later, MIT, MIT-CMU, MPL-1.1, MPL-2.0, OFL-1.1, PSF-2.0, Python-2.0, Python-2.0.1, Unicode-DFS-2016, Unlicense, Zlib, ZPL-2.1 OpenSSF Scorecard
Scanned Files
|
f43bc1f
to
63c0f64
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried it locally and it works great! Left a couple of small comments but I will check back when Max has finished his review
troubadix/standalone_plugins/dependency_graph/dependency_graph.py
Outdated
Show resolved
Hide resolved
40af5dd
to
ae692a9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Max asked me to do a final review of this and I think it looks ready! Ran it locally and it works, it seems like all the review comments have been resolved as well. The cleanup the file/directory methods is good too. I suggested some small spelling error fixes, and once the merge conflict is fixed, looks good 👍
troubadix/standalone_plugins/dependency_graph/dependency_graph.py
Outdated
Show resolved
Hide resolved
troubadix/standalone_plugins/dependency_graph/dependency_graph.py
Outdated
Show resolved
Hide resolved
This reverts commit 2d9a86f.
5457bd2
to
abcb837
Compare
What
Adds a standalone plugin for evaluating script dependencies with a directed networkx graph.
checks for:
included functionality of normal plugins
Output
python logging levels for system information (
error
,warning
,info
)normal additive verbosity up to
-vv
for result output.Feed options
example call:
poetry run troubadix-dependency-graph ~/gb/vulnerability-tests/nasl --feed full --log info -vv
Execution Time
locally ~13 seconds
Why
When checking dependencies, it makes sense to analyse the whole feed, rather than just working on changed scripts. And working on the whole feed is easier with a standalone plugin that doesn't have to adhere to the Troubadix structure.
References
Checklist